# coding:utf-8
import traceback
import datetime

from app.health_manage.data_opt import health_basic_data_sync, server_reverse_query
from celery import shared_task
from server_health.celery import app

app.set_default()


@shared_task
def test_cron():

    print(2)
    return True


@shared_task
def sync_server_cron():
    res, msg = health_basic_data_sync()
    print(res, msg)
    return True


@shared_task
def reverse_server_cron():
    res = server_reverse_query()
    print(res)
    return True
